﻿@model MvcGrabBag.Web.Models.ProductInput

@{
    ViewBag.Title = "New Product";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>New Product</h2>

@using(Ajax.BeginForm(new AjaxOptions()))
{
    <div class="two-column">
    
        <div class="field-group">
            @Html.FullFieldEditor(m => m.Id)
            @Html.FullFieldEditor(m => m.Name)
            @Html.FullFieldEditor(m => m.Price)
            @Html.FullFieldEditor(m => m.Description)
            @Html.FullFieldEditor(m => m.CategoryId)
            @Html.FullFieldEditor(m => m.Thumbnail)
        </div>
        
        <div class="field-group">
            @Html.FullFieldEditor(m => m.SalePrice)
            @Html.FullFieldEditor(m => m.FeaturedDescription)
        </div>
    </div>
    
    <div class="clear-fix"></div>
   
    <input type="submit" value="Save"/>
}